<ui:composition template="/template.xhtml" 
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html">
    <ui:define name="body">
        <div class="mastbod">
            <h:form class="form-horizontal">
                <div class="control-group">
                    <label class="control-label" for="txtLogin">Nom d'utilisateur</label>
                    <div class="controls">
                        <h:inputText id="txtLogin" value="#{customerManagedBean.customer.login}" 
                                 required="true" label="Login" 
                                 requiredMessage="Login requis">
                            <f:validateRequired for="txtLogin" />
                        </h:inputText>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="txtPassword">Mot de passe</label>
                    <div class="controls">
                        <h:inputSecret id="txtPassword" value="#{customerManagedBean.customer.password}" 
                                 required="true" label="Password" 
                                 requiredMessage="Mot de passe requis">
                            <f:validateRequired for="txtPassword" />
                        </h:inputSecret>
                    </div>
                </div>
                <div class="control-group">
                    <div class="controls">
                        <p:commandButton id="btnConnection" value="Se connecter" styleClass="btn"
                                         action="#{customerManagedBean.connexionClick}" ajax="false" />
                    </div>
                </div>
            </h:form>
            <hr style="clear: both; visibility: hidden;" />
        </div>
    </ui:define>
</ui:composition>